<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>History Exporter</title>
    <link rel="stylesheet" href="styles.css">
    <style>
        body {
            width: 300px;
            padding: 10px;
            font-family: Arial, sans-serif;
        }
        
        .form-group {
            margin-bottom: 10px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
        }
        
        input,
        select {
            width: 100%;
            padding: 5px;
            margin-bottom: 10px;
        }
        
        button {
            width: 100%;
            padding: 8px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        button:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }
        
        #status {
            margin-top: 10px;
            padding: 5px;
            text-align: center;
        }
    </style>
</head>

<body>
    <div class="container">
        <h1>历史记录导出工具</h1>
        <div class="date-range">
            <div class="form-group">
                <label for="startDate">开始日期：</label>
                <input type="date" id="startDate">
            </div>
            <div class="form-group">
                <label for="endDate">结束日期：</label>
                <input type="date" id="endDate">
            </div>
        </div>
        <div class="form-group">
            <label for="formatSelect">导出格式：</label>
            <select id="formatSelect">
                <option value="csv">CSV</option>
                <option value="excel">Excel</option>
                <option value="json">JSON</option>
            </select>
        </div>
        <div class="buttons">
            <button id="exportBtn" class="primary-btn">导出历史记录</button>
        </div>
        <div id="status" class="status"></div>
    </div>
    <script src="popup.js"></script>
    <script src="xlsx.full.min.js"></script>
</body>

</html>